package com.csun.dsms.model.dto.user;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-14 19:02
 * @description: TODO
 */
@Data
public class UserModifyPwdDto {

    /**
     * 登录名
     */
    @NotNull(message = "{login.name.null}")
    @NotEmpty(message = "{login.name.null}")
    private String loginName;

    /**
     * 原始密码
     */
    @NotNull(message = "{old.password.null}")
    @NotEmpty(message = "{old.password.null}")
    private String oldPassword;

    /**
     * 新密码
     */
    @NotNull(message = "{new.password.null}")
    @NotEmpty(message = "{new.password.null}")
    private String newPassword;

    /**
     * 确认密码
     */
    @NotNull(message = "{confirm.pwd.null}")
    @NotEmpty(message = "{confirm.pwd.null}")
    private String confirmPwd;

}
